.class Lcom/waiqin365/lightapp/returngoods/a;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/b/a/b;->b()Z

    move-result v1

    if-eqz v1, :cond_5

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v1, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->f:Ljava/util/List;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->a(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->g:Z

    if-nez v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    iget v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->d:I

    if-ne v1, v2, :cond_1

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->b(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->clear()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->b(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Ljava/util/List;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->f:Ljava/util/List;

    invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->c(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/returngoods/e;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/returngoods/e;->notifyDataSetChanged()V

    iget v1, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->d:I

    iget v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->e:I

    if-ne v1, v2, :cond_4

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->d(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->g()V

    :goto_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->b(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->d(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->e(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    :goto_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->a(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Z

    move-result v0

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->d(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->a(Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->b(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Ljava/util/List;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->f:Ljava/util/List;

    invoke-interface {v1, v3, v2}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z

    goto :goto_1

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->b(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Ljava/util/List;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->f:Ljava/util/List;

    invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_1

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->b(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->clear()V

    goto :goto_1

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->d(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    goto :goto_2

    :cond_5
    iget-object v1, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_6

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    const v2, 0x7f08013b

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    :cond_6
    iget-object v2, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v2, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_2

    :cond_7
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->d(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v1

    invoke-virtual {v1, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->e(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/b/a/b;->b()Z

    move-result v1

    if-eqz v1, :cond_8

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->e(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a()V

    goto/16 :goto_3

    :cond_8
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->e(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/returngoods/b/a/b;->a:I

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    goto/16 :goto_3

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a;->a:Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;->d(Lcom/waiqin365/lightapp/returngoods/CRGRelanvantOrdersActy;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->d()V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1391
        :pswitch_0
    .end packed-switch
.end method
